<html>
<body>
报告与其中一个运算符约定匹配但缺少 <code>operator</code> 关键字的函数。
<p>通过添加 <code>operator</code> 修饰符，您可以允许函数使用者编写惯用的 Kotlin 代码。</p>
<p><b>示例：</b></p>
<pre><code>
  class Complex(val real: Double, val imaginary: Double) {
      fun plus(other: Complex) =
          Complex(real + other.real, imaginary + other.imaginary)
  }

  fun usage(a: Complex, b: Complex) {
      a.plus(b)
  }
</code></pre>
<p>该快速修复会添加 <code>operator</code> 修饰符关键字：</p>
<pre><code>
  class Complex(val real: Double, val imaginary: Double) {
      operator fun plus(other: Complex) =
          Complex(real + other.real, imaginary + other.imaginary)
  }

  fun usage(a: Complex, b: Complex) {
      a + b
  }
</code></pre>
<!-- tooltip end -->
</body>
</html>